package com.gdit.comm.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * 状态枚举类
 *
 * @author fgba
 */
@AllArgsConstructor
@NoArgsConstructor
public enum Status {
    /**
     *
     */
    STATUS_AVAILABLE(0, "可用"),
    STATUS_DELETE(1, "删除");


    @EnumValue
    private Integer code;
    //标记响应json值
    @JsonValue
    private String value;

    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return this.value;
    }
}
